Pregunta de entrevista de Nagarro

Basic question on data structure and algorithms