Search in a big sorted array(LintCode 1):

Problem