Frage im Vorstellungsgespräch bei Amazon

Designing algorithm with the best possible time-complexity?