I’ve been seeing these links everywhere and I even got some too! :( do not click, these accounts are bots with links that contain viruses
The sentence in which the underlined infinitive phrase functions as a subject is the last one - to quickly move large groups of people is the purpose of public transportation.
<em>To quickly move </em>is the infinitive phrase, and it is a subject.