Codeforces Javascript Interview Bit