Combinations and Best time to buy and sell stock