Wrong test cases

you are still not getting what i am trying to ask man.i want to know how to print the no of count of steps how will i achive that?

public static int countMoves(int n) {

    if (n == 0) return 0;

    // count(n-1) + 1 + count(n-1)
    return 2 * countMoves(n - 1) + 1;
}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.