phrase: words of uppercase English letters separated by exactly one space. Write each word top to bottom in its own column (the first word in the first column, the second in the second, and so on), then read the resulting table row by row.
Return the rows of the table from top to bottom. When a word is too short to reach a row, its spot holds a space. Rows must not end with spaces; strip them.phrase="CAT ON MAT" → ['COM', 'ANA', 'T T']
Row one holds the first letters (C, O, M), row two the second ones (A, N, A), row three the third ones: ON has none, so that spot is a space, followed by the T of MAT.
phrase="SKY IS BLUE" → ['SIB', 'KSL', 'Y U', ' E']
Row three has Y, then a space where IS has no letter, then U; row four has two spaces before E. Trailing spaces are removed.
phrase consists of uppercase English letters and spacesphrase="CAT ON MAT"
['COM', 'ANA', 'T T']
Run checks the first 3 tests in your browser. Submit checks all 127 tests on the server, hidden ones included.