FrogRiverOne Codility JAVA solution (100/100)

Concept here is to create a counter with number of jumps needed to cross the river and an array that is long as a river with initialed zeros. When the leaf falls on a specific place, we check if the the leaf already fell to that spot and if not we decrease counter. When counter hits zero, that is the earliest time the frog can get to other side side and live happily ever after. 🙂