Microsoft interview question

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