solutions set to HackerRank