Infosys interview question

Python code to find duplicate from 2 files