Hello Gabriela,
Just wanted to confirm if your "Subset" a subset of "Set" ? As you are using ElementCast, I am assuming that Subset is an unrelated set to Set.
The code inside your for loop should be
You are iterating over k but deleting the element s. The value of s is not changing.