Midpoints of the first two levels of a binary search

Company: Infoedge

Difficulty: medium