Pergunta de entrevista da empresa Qualcomm

How python resolves cyclic references then?