Pregunta de entrevista de Samsung Electronics

The purpose of a binary algorithm