In railway ticket reservation algorithm, the train halt stations are A,B,C,D,E. Only one ticket is available between A to E. One user books that ticket from A to C and if another user tries to book ticket between D to E, then it should be available. How to build this logic using C# ? without using any database.