LinQ query help regarding duplicates

Perfect!! So the topic can be closed.

Happy Automation!!