Rakuten interview question

Codility Test: something about binarian variables