Why ans is -11?

i used bit representation of 10 and flipped the bits, why output is -11 ?