Maximize one stock trade profit | Meta Interview Question