Pregunta de entrevista de Shweta

its was a coding round