Pergunta de entrevista da empresa Revolut

How would you build a system that asks data from an API and also supports caching?