HackerRank - Codesprint 5