Fannie Mae interview question

Explain an algorithm for getting coffee