Pergunta de entrevista da empresa WEX

Write an algorithm to a vaguely defined problem, with very strict performance restrictions.