Pregunta de entrevista de GRAPHISOFT

Find the bugs in the code How would you refactor it