Detect currency arbitrage with costs | Optiver Interview Question