Piyush and magic park problem

I’am getting output Yes and 6 instead of 13 for the same code as shown in the tutorial.

plz send your code so that i can check your code

save your code at ide.codingblocks.com
and share the link