Problem statement

https://binarysearch.com/problems/Vertical-Cipher/

Solution

Just use functionality of strings in python.

Complexity

It is O(n) for time and space.

Code

class Solution:
    def solve(self, s, k):
        return [s[i::k] for i in range(k)]