Pergunta de entrevista da empresa Equirus Wealth

They asked how would you design an API which fetches data from two tables at once with restriction.