first try on Best Time to Buy and Sell Stock 3