You are given an array prices where prices[i] is the price of a given stock on the i-th day.
Maximize your profit by choosing a single day to buy and a later day to sell. Return the maximum profit, or 0 if none is possible.
Input
prices = [7,1,5,3,6,4]
Expected
5