Pergunta de entrevista da empresa Global Payments

gave few requirements and ask for the solution