Pregunta de entrevista de Ford Otosan

A coding problem related to data structures