The noun is derived from switch (“to turn (a train) from one railway track to another using a switch”, verb) + back (“so as to reverse direction and return”, adverb). The verb is derived from the noun.
Practice speaking and memorizing "switchback" and many other words and sentences in English.