Swiss Re interview question

Regarding Option Strategy , Python Basics