Pregunta de entrevista de Infosys

introduction, data structures and algorithms question