human
I found an interesting problem on https://leetcode.com/problems/maximum-profit-of-operating-a-centennial-wheel/:
You are the operator of a Centennial Wheel that has four gondolas, and each gondola has room for up to four people. You have the ability to rotate the gondolas counterclockwise, which costs you runningCost dollars.
You are given an array customers of length n where customers[i] is the number of new customers arriving just before the ith rotation (0-indexed). This means you must rotate the wheel i times before the customers[i] customers arrive. You cannot make customers wait if there is room in the gondola. Each customer pays boardingCost dollars when they board on the gondola closest to the ground and will exit once that gondola reaches the ground again.
You can stop the wheel at any time, including before serving all customers. If you decide to stop serving customers, all subsequent rotations are free in order to get all the customers down safely. Note that if there are currently more than four customers waiting at the wheel, only four will board the gondola, and the rest will wait for the next rotation.
Return the minimum number of rotations you need to perform to maximize your profit. If there is no scenario where the profit is positive, return -1.
 
Example 1:

Input: customers = [8,3], boardingCost = 5, runningCost = 6
Output: 3
Explanation: The numbers written on the gondolas are the number of people currently there.
1. 8 customers arrive, 4 board and 4 wait for the next gondola, the wheel rotates. Current profit is 4 * $5 - 1 * $6 = $14.
2. 3 customers arrive, the 4 waiting board the wheel and the other 3 wait, the wheel rotates. Current profit is 8 * $5 - 2 * $6 = $28.
3. The final 3 customers board the gondola, the wheel rotates. Current profit is 11 * $5 - 3 * $6 = $37.
The highest profit was $37 after rotating the wheel 3 times.
Example 2:
Input: customers = [10,9,6], boardingCost = 6, runningCost = 4
Output: 7
Explanation:
1. 10 customers arrive, 4 board and 6 wait for the next gondola, the wheel rotates. Current profit is 4 * $6 - 1 * $4 = $20.
2. 9 customers arrive, 4 board and 11 wait (2...

I tried it in Python, but could not do it. Can you solve it?

Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.

class Solution:
    def minOperationsMaxProfit(self, customers: List[int], boardingCost: int, runningCost: int) -> int:
        l = list()
        num_of_people = 0
        wait_people = 0
        c = 0
        for i in customers:
            c += 1
            if (i + wait_people) >= 4:
                num_of_people += 4
                wait_people = i + wait_people - 4
            else:
                num_of_people += i + wait_people
                wait_people = 0
            temp = num_of_people*boardingCost - c*runningCost
            l.append(temp)
        while(wait_people > 0):
            c += 1
            if wait_people >= 4:
                num_of_people += 4
                wait_people -= 4
            else:
                num_of_people += wait_people
                wait_people = 0
            temp = num_of_people*boardingCost - c*runningCost
            l.append(temp)
        if max(l) > 0:
            return l.index(max(l))+1
        else:
            return -1