Keep an eye on the clock as you move through the exam. Try to set guidelines at the beginning for how long things will take, and if you’re exceeding those limits, watch out. Typically, things take longer than you expect, and many of these exams aren’t designed to be completed well within the specified time limit. That’s because things move fast in politics, and people want to know how far you can get in high-pressured, timed situations. If you are unable to finish the exam (which probably happens to a lot of candidates, even the ones who are hired), include how you would have approached the question if you had more time. Honestly, you should give a conceptual overview of your approach even if you do have time to execute it. Most people won’t actually read through every line of your code, so document things thoroughly.