Nokia interview question

binary search and aptitude reasoning