How would you solve a practical business logic problem in a live coding round while keeping the code clean and extensible at Persistent Systems?