Every night, goods wagons from the coal mines reach Bhimpur Junction. Station master Kavita Rao must send them to the port. Her yard has only one side track. It is closed at the far end.
The wagons are moved into the side track one by one, in the order they arrive. Later, the wagons come out from the same end. The last wagon in comes out first. The first wagon in comes out last.
When the train to the port is ready, Kavita must call the port. She must tell the port the order in which the wagons leave. Write it for her.
