Solution for HackerRank Challenges I have solved