Help with problem name- FICE

https://www.codechef.com/problems/FICE
Can anyone pls tell me how to solve this question with recursion?