I was asked this problem at an interview, I had no clue of how to solve it, can someone help?
Suppose that we have $N$ cars parked in a line occupying spaces $1$ to $N$. Spaces $N+1$ to $2N$ are empty. Every minute, a car is considered eligible to move forward one space if:
a) the space in front of them (space $i+1$) is empty, and
b) its space number, $i$, is less than $2N$.
Suppose that every minute, if a car is eligible to move, then it has a $1/2$ chance of moving forward by one space. What is the expected number of minutes before the cars occupy squares $N+1$ to $2N$?

The problem is more complicated than I thought in the first place. All I could manage is to produce this picture (every column is one configuration of parking, black dots are the cars, white spots are empty lots, there are N=20 cars).
It is quite clear, that $N-1$ is the minimum number of parking configurations one has to go through. However, allowing the advancement of a car only with probability $p=1/2$ implies that the first car, which is never blocked by another car, arrives parking spot $2N$ after a negative binomial time (parameters N and 1/2). That gives an average $2N$ for the time until the first car hits parking slot $2N$.
For the other cars it is more complicated. They block each other sometimes. The simulation shows how that slows down the other cars.
Searching on a famous search engine, i could find only similar problems that are called "parking functions". There are a number of papers on that topic, beginning from the 60s, but is not the same setup as here. But maybe there are some references somewhere in there.
I cannot imagine this to be an interview question. Either there is a trivial answer that I do not see. Or, it is an open problem and the interviewer wanted to see your reaction on non-trivial, hard problems. Sorry, I cannot provide any answers. But the simulation shows at least, that $N^2/2$ is not the answer (for the simulation above, i got 180.9 as an average after 20 runs).
Either way, it is an interesting question!