LTIMindtree interview question

How to solve Phantom read problem.