def insert_spaces_back(text, indices):
    """
    Given text and a list of indices, insert spaces at those indices
    Example: insert_spaces_back("HELLOWORLD", [0, 4])

    @param text is the text you are inserting spaces into
    @param indices is the integer list of indices of spaces
    @returns the formatted string with spaces
    """

    string_to_list = []

    for char in text:
        string_to_list.append(char)
    for index in indices:
        string_to_list.insert(index, " ")

    list_to_string = ""

    for elem in string_to_list:
        list_to_string += elem

    return list_to_string