My HackerRank Solutions: Algorithms using Javascript