Besen interview question

Straight forward