HackerRank solutions written in Java