To find maximum profit of given stock data

Find the maximum profit you can make