UST interview question

Searching and Sortings