A restaurant’s got its own garage. An operator works there.
The ramp can be open or closed.
When the ramp is open there can enter 3 cars per minute (if there is space).
When the ramp is closed 2 cars can exit per minute.
Ask for the amount of spaces there are for the cars to park in the garage.
Then, the portion of the cars that entered/left.
The output should be how many cars are in the garage in the end.
Examples: (input1, input2, output)
Have fun!