Pregunta de entrevista de Deutsche Bank

Some random question on data structure. Multithreading and design pattern. He had some fixed answer in his mind and was not ready for other solutions . The interviewer was expecting exact syntax on paper. Even though he was asking easy to medium data structure question but he himself was confused seeing the solution.