Simulate Turn-Based Monster Battles | OpenAI Interview Question