Nokia Interview Question

binary search and aptitude reasoning