Pregunta de entrevista de KPMG

Coding question and answers and basics