Find the length of the longest word to determine the number of vertical words.
Initialize an empty list to store the vertical words.
Iterate through each character position up to the length of the longest word.
a. For each position, initialize an empty string for the vertical word.
b. Append the character from each word at the current position, or a space if the word is shorter.
c. Trim trailing spaces from the vertical word.
d. Add the trimmed vertical word to the result list.
Return the result list containing all the vertical words.