Given an array of stock prices, find the biggest profit possible.
Assume you may buy once and sell once, and the sale must occur after the purchase. Return 0 if no positive profit is possible.
Implement max_profit(prices), which accepts a list of integers and returns the maximum profit as an integer.
def max_profit(prices):