Write a program that takes a character sequence and an index sequence as inputs and removes the characters in the given indexes with the given order:
Ex: abcdef 2 0 3 -1
Keeping the given character sequence in an array:
[βaβ, βbβ,βcβ,βdβ,βeβ,βfβ]
AGer removing the character at the index 2, the array becomes:
[βaβ, βbβ,βdβ,βeβ,βfβ]
Then remove the character at the index 0:
[ βbβ,βdβ,βeβ,βfβ] Then 3:
[ βbβ,βdβ,βeβ]
You are leG with this data. Please print the remaining characters to the output starMng from index 0:
> bde
Input Format:
<character sequence>[Space]{<indexes>[Space]}* -1 {.}* -> zero or more
All the index sequences will be terminated with -1. Output Format:
<remaining character sequence>\n
*You can assume that the character sequence will not exceed 100 characters. *Invalid indexes may be specified as well. You need to check if it is in the data range.





