Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use dynamic programming.
At each index in <code>targetIndices</code>, make the choice to remove or not remove the character.
Solve with full IDE support and test cases