My HackerRank solutions' code