MongoDB Interview Question

Simple coding question involving binary search