📕 FREE Guide2025 Quant Firm Tier List

Optiver Interview Question

OptiverSoftware Engineer Interview

Complete a function that takes in a seqId (int) and a char at a time. Char consists of a-z and '-'. The seqId's are out of order. A full message when the chars are sorted by seqId is in this format: "-FullMessage-". The goal is to print out any full message exactly when it completes. When it does, prints out that message using provided OnComplete(msg) function.

Unlock the Full Solution

Enter your email to get instant access to the complete solution, explanation, and similar practice problems.

Want to ace more quant interviews?

Get access to our comprehensive interview preparation course with hundreds of real interview questions, detailed solutions, and personalized mentorship from quants at top firms.

Start Your Prep Today