Flow Traders Interview Question

Mental math