Check in O(N (logN)^N) solution for Fibonacci Frog problem from
Codility.