Pregunta de entrevista de Nagarro

Basic DSA and algorithms were asked.