Pregunta de entrevista de Infosys

Hard coding question and printf won’t work