Blue Flame Labs interview question

Binary Search algorithm it's theory and implementation both asked