Samsung Electronics Interview Question

The purpose of a binary algorithm