This can be logically solved using a property. Here I have a property called a key.
- Take out any String property in the object and put it in the list.
- Check in the list weather that property contains if so then remove it.
- Return the object list.
List