Infosys interview question

Python oops concepts and databases basic queries