WEX interview question

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