T-Systems interview question

Basic questions on sorting and searching algorithm.