I need a way to find duplicates in google sheets as shown below

it should be repeating and on both columns on a same row. Thanks in advance
I need a way to find duplicates in google sheets as shown below

it should be repeating and on both columns on a same row. Thanks in advance