Adobe interview question

Algorithms you used in project and why