My code solving problems on HackerRank