Best time to buy and sell stock II AC. (Faster version because of less additions)