JUSPAY interview question

Thought process and intuition during solving the problem