Pregunta de entrevista de Hexaware Technologies

One coding question based on loops, input output and conditional statements.