This question was posed to me in a national level competition.
The question is from Complements in division Computer Arithmetic of Computer Fundamentals
For explanation: To find the 7’s complement of any number, we simply subtract 7 from each of the bits.
Here, 777-432=345. So, the 7’s complement is 345.