I have one dataframe, 1st columns (A) and 2nd column (B) are given and I want the output similar to Column (C). Once I get the output in Column (C), I will remove duplicate