Flow Traders Interview Question

Mental math test.