Frog among leaves - SOLUTION