hackerrank test questions and answers javascript