Mastercard interview question

Math logic puzzles Python questions