Tidy up BestTimeToTradeStockII solution