Twilio Interview Question

Hit API and return desired output