GlobalLogic interview question

API integration with try catch