Solution to the FrogRiverOne problem