for example, for input [1, 3, 4, 10]

if we buy at day one and sell at day four, the total profit is 9, but the average profit is 3;

if we buy at day three and sell at day four, the total profit is 6, but the average profit is 6.

which one to choose?