The sentence in which the underlined infinitive phrase functions as a subject is:
A. To quickly move large groups of people is the purpose of public transportation.
Here, "To quickly move large groups of people" acts as the subject of the sentence.