Root Me Javascript Interview Question