Infosys Interview Question

How would you test this API endpoint?