from typing import List


def _transpose(ls: List[List[int]]) -> List[List[int]]:
    """
    Helper function that transposes a 2d list of integers
    """
    list_len = len(ls)
    return [[ls[j][i] for j in range(list_len)] for i in range(list_len)]