DraftKings interview question

The runtime of my Algorithm