Maximize profit with transaction fee | Coinbase Interview Question