Optiver
Interview Question
Software Engineer Interview
Optiver
Complete a function that takes in a seqId (int) and a character (from 'a' to 'z' or '-'), where seqIds may arrive out of order. When the collected characters, sorted by seqId, form a complete message in the format '-FullMessage-', the function should print the message immediately 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.

