I do not fully understand how to solve the problem. There is a suspicion that the Queue interface is needed here. Do I think in the right direction?
Implement a class that simulates the work of the n-seat car park. The car pulls up to a certain place and drives to the right until it has a free seat. The class must support the methods that serve the arrival and departure of the car. Determine the method that displays the current parking status in the console.