Pregunta de entrevista de Deloitte

they asked to write a code on notepad