HackerRank 10 days of JavaScript solution let and const