Adyen interview question

Backtracking question for technical round