Missing two numbers

i didnt really cleared about the logic we have used in the interview question find the two missing number can you provide me more details to understand it in better way

its uses basic concepts of XOR and AND gates…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.