[1,4,6,2,8,3,10,14] 3 For this case, i thought the best profit is 12. Buy at 1st and sell 5th(7),buy6thandsell8th(11). But the system told me the best is 13. Would someone please help me to figure out!? Thanks