Rakuten Interview Question

Codility Test: something about binarian variables