Optimal Single Trade Profit - Coding problem | OneNoughtOne