Transwarp Interview Question

1 leetcode medium problem (binary search)