Pregunta de entrevista de Tech Mahindra

Asked some basic program from c