F5 interview question

Best time for stocks in leetcode