Solved FibFrog in java