I am not getting output , it shows "Agent stopped due to iteration limit or time limit."

See our posting guide to help us debug your program.