ZCO -Variation

I am working on ZCO-chewing problem and I am partially accepted.
Can anyone tell me how i can make my code fast to execute and run?
Here is my code link.

You should provide the link to your code and explain your approach so that people can answer you better. :slight_smile: