javascript problem solving questions hackerrank