Maximizing Stock Profit: Brute-Force and Optimized Solutions Introduction You are given an array prices where prices represents the price of a given stock on the ith day. You aim to maximize your profit by choosing a single day to buy one stock and a different day in the future to sell that stock. Your goal