Please tell me about this solution

Please tell me about this solution

I tried it using a simple Recursive Approach
By taking a P, N, C Pointers, and then doing iteratively that.
But I think it’s not working, please tell me If I am wrong or any other solution present?

@cbcao263 Can you please share your code so that i can see where the error is .
Save your code in an ide and then send the link here