Sorting Railway Cars

Problem Name:
Sorting Railway Cars
Site:CodeForces
Links:
Tags:
Problem setters: