Pergunta de entrevista da empresa HARMAN

Programming logic and how to handle if it have errors