Flow Traders interview question

Mental math