Pergunta de entrevista da empresa Tessian

Programming question: related to data structures.