Any external link for the explanation will suffice too. Your solution - https://github.com/havelessbemore/hackerrank/blob/master/algorithms/bit_manipulation/2s-complement.java