def get_col_name(col_num: int) -> str:
    """
    Transforms a column number to its column name. I.e. 1 => A, 2 => B, 27 => AA, 14558 => UMX
    :param col_num:
    :return: the name of the column
    """
    numeric = (col_num - 1) % 26
    letter = chr(65 + numeric)
    remaining_index = (col_num - 1) // 26
    if remaining_index > 0:
        return get_col_name(remaining_index - 1) + letter
    else:
        return letter