Pergunta de entrevista da empresa Infosys

Hard coding question and printf won’t work