add java solution for HackerRank positive infinity problem