Suade Labs interview question

Mock store commission calculation in python