Qualcomm Interview Question

How python resolves cyclic references then?