Pergunta de entrevista da empresa Bloomberg

You are asked to make a program, that will get message packets out of order. Write a class that will correctly log the sequence in order and wait if a number in the sequence has not been logged yet