some HackerRank solutions