HCLTech interview question

Basic swift, core data, API call