HackerRank 20/20 Hack July Contest 2nd Challenge