Solved FrogRiverOne in java