MoonPay Interview Question

How would you build a risk function