Flow Traders Interview Question

didnt make it past mental math