Porsche interview question

basically a bunch of python