Codility lesson 2: FrogRiverOne.java, MaxCounters.java, MissingInteger.java