I am getting Runtime Error NZEC for my solution to this problem https://www.codechef.com/problems/FGFS/
Could someone tell what is wrong in my solution.
Here’s the link https://www.codechef.com/viewsolution/23707178
The code is written in Python 3.6