Codility Test Questions And Answers Javascript