Introduction - If you have any usage issues, please Google them yourself
Assuming stopped at the entrance of the railway carriage dispatch station sequence number order of 1,2,3, ..., n. Design a program, may thus find all the length of the output sequence of n compartments.