I have used the top down approach to solve this problem, but there’s some issue and I’m not able to identify that.
I have shared my code, in the last testcase where n=47, the answer should be Yes, but I’m getting No.
Please help me find what’s wrong with my code, or share a working code : TOP DOWN only.
Thanks.