Cognizant interview question

How you have integrated SFDC with other System using SOAP/REST api?