Optiver
Interview Question
Software Engineer Interview
Optiver
Complete a function that takes in a seqId (int) and a char (consisting of 'a'-'z' and '-'). The seqId values may be received out of order. A full message is formed when the characters, sorted by seqId, create a string in the format "-FullMessage-". The goal is to print out any full message exactly when it completes, using the provided OnComplete(msg) function.
Unlock the Full Solution
Enter your email to get instant access to the complete solution, explanation, and similar practice problems.

