Binary String Conversion

Company: Barclays

Difficulty: medium