def find_instances(string, character):
    """
    The function returns all the indices of the
    character present in the string.
    A list is returned
    """
    return [index for index, letter in enumerate(string) if letter == character]