I had an exam in DLD subject. There was a question as "Design a circuit which can take 2’s compliment of any 3 bit number". The truth table we get is :