Solution to Spotify's Reversebinary puzzle