What ever you are doing to CodeChef is making it worse pls stop
Now the AI is not giving complete code, very disappointed in CodeChef
can you please refresh that page once and check. The complete code should be there.