Microsoft Interview Question

Design an elevator algorithm for an office building taking into account usage patterns.