This homework is supposed to simulate a depot. It has multiple tracks and every railcar of the train is inserted in the tracks that can support its size. It has two operation types: if the operation type is 0 , the train is inserted in the depot on the track that can support its size. Else , if the operation type is 1, that means that a train is to be made of specific railcars from the depot so I implemented a function which checks if the depot has the railcar types needed to construct the train. If it does, than every railcar in front of the required railcar is shifted to the right in a circular sense. If it comes back to the track that it already was , it means that the depot doesn't have enough place to shift the railcars so it returns an error. Else , the railcar is taken out and the program checks for the next railcar needed to create the train.