Swiss Re Interview Question

Regarding Option Strategy , Python Basics