Qualcomm interview question

How python resolves cyclic references then?