Zopa Interview Question

Implement a rate calculation system.