QuantZig interview question

Advanced level python questions and oops concepts