you need to find out the distance between two trains using only two commands
mf - move forward
mc - move backward
the trains are dropped using helicopter by parachutes . both doesn't know where they are;
no gps in the train they are in the same track
write a code to find the trains using the given commands