C1 Min Read LetuscrackonJune 9, 2024 Distance Travelled + or – The program must accept a string S representing the direction of movement as the input. The string S contains only the…