Tilling problem

i am not able to figure out the base case in tilling problem