Infosys interview question

how did you use apis