Pergunta de entrevista da empresa Optiver

Implementation based OA question. Good to be strong in OOPS and data structures