WellDev interview question

Algorithm like sorting and searching