AppsFlyer Interview Question

Q:Given slow function(external api), Implement a function that returns the value in a faster time.