Point72 interview question

a lot of question in Python