LTIMindtree Interview Question

How to solve Phantom read problem.