Altimetrik interview question

Some scenarios based questions on python Advanced