The criminal syndicate is profiting from a volatile artifact trading market. Your mission is to determine the perfect time to buy low and sell high to intercept the syndicate's profits.
Input is denoted by a list of integers `prices`.
Input: prices = [10, 20, 5, 15, 7, 10, 22, 1, 12]
Input: The input is too long! Download it here (space seperated).