Samsung Electronics interview question

The purpose of a binary algorithm