Just like how you are given the question in different accents, you can spell in different spelling formats. As long as you keep the spelling format constant, it doesn't matter if your spelling is British or American.