Solved LinkedListCycleII in java