Mistake in my approach


I tried a top down approach to solve the cell mitosis.
My approach is explained in the code
It is not able to pass 2 test cases.
Please tell what is wrong with my approach and which test case is it not able to pass(any example, since I am not able to figure that out)
Thanks

Hey @gaganwalia212
seee for this
30
1 1 1

1->2->4->8->16->15->30 Total steps =6