Scenerio:
I used to work at Google. When I was an employee at Google, I learned how to work efficiently. Now I am not a Google employee.
Example 1
Working at Google taught me how to work efficiently.
Example 2
To work at Google taught me how to work efficiently.
Question:
One is gerund and the other is an infinitive phrase. I think Example 1 expresses the meaning. However, I wonder whether Example 2 also expresses the same meaning.
Are both of them acceptable?