Fiserv interview question

Oops abd one python code that was easy