Pergunta de entrevista da empresa Axioned

A problematic scenario that I may have encountered and solved in NodeJS