Paratha Question Implementation Doubt

Here is the code of the question explained in the video :- https://ide.codingblocks.com/s/410497. Please tell what is the error in the code and please it is a request also to tell the error in the given code along with the correct code, if you are providing, but let me know the mistake in the attached code apart from sending the correct code.

Hello @Sakshi2004 see this:


i found your implementation similar only but confusing.

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.