Let's do it: [1, 1, 1, 1] 010 phase done: [1, 1, 1, 1] tmpstr 111 i 0 i 1 tmpstr2 111 4 1 1 1 1