MultiSafepay interview question

live coding based on TDD