Infosys interview question

Monkey Patching Problem in Python(I was not able to answer it)