WilliamsF1 interview question

Point out logical errors in code and improve on them