Added hackerRank java Solution class template