Konrad Group Interview Question

Read some JS, find the problems, and fix them