If bit is set append '5' else append '4'
int bit = mask & rank ; if ( bit > 0 ) { left += y ; right += y ; } else { left += x ; right += x ; } } right = reverse ( right ) ; String res = left + right ; return res ; }