Coding Dojo interview question

How binary search works and how