Reversing Binary String: Problem Solution