Capgemini Engineering interview question

Python code, Oops, ML, DL