Wise interview question

Implement a series of efficient algorithms