def get_transpose(matrix: list) -> list:
    """
    Function for getting transpose matrix
    :param matrix: input matrix
    :return: transpose input matrix
    """
    matrix_t = matrix.copy()
    n = len(matrix_t)
    for i in range(n):
        for j in range(i, n):
            matrix_t[i][j], matrix_t[j][i] = matrix_t[j][i], matrix_t[i][j]
    return matrix_t