Adyen interview question

Implement dot product in python