WA in recursive solution

Sir i am doing Everything right as per i can think in this solution but dont know why the test case is giving a wrong answer.

Here is my code

https://ideone.com/e.js/EC8S6R

use long long…