Best Time to Buy and Sell Stock: remove IF block in the FOR loop