Wise Interview Question

Caching, algorithms - exchange rate exercise