Cashfree Interview Question

How would you design an automation framework for testing a given API?