Pergunta de entrevista da empresa WD

Pyyhon especially OOPS and few puzzle questions