Problem in logic

i can not understand the logic

hello @r_apaar

pls refer this video explanation by prateek bhaiya - > link