Wise interview question

Algorithms