Axe Group Interview Question

Finding mistakes in the code