How to get output as unique rows by comparing two columns using LINQ query

Thank you @Gokul001