Global Payments Interview Question

gave few requirements and ask for the solution