Pregunta de entrevista de Infosys

Interviewer asked basic coding questions