Pregunta de entrevista de HARMAN

Programming logic and how to handle if it have errors