Pregunta de entrevista de Nagarro

coding questions along with multiple solutions