Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given a string s. Return all the words vertically in the same order in which they appear in s.
Words are returned as a list of strings, complete with spaces when is necessary. (Trailing spaces are not allowed).
Each word would be put on only one column and that in one column there will be only one word.
 
Please complete the following python code precisely:
```python
class Solution:
    def printVertically(self, s: str) -> List[str]:
```