Help me in solving DR problem

My issue

how to solve this

My code

# cook your dish here

Learning course: Python with Data structures
Problem Link: Duplicate Removal Practice Problem in Python with Data structures - CodeChef