Flow Traders Interview Question

Perform a set of calculations