GALE Partners interview question

Buy and Sell stock problem statement.