Bitmasking-Unique Numbers 2

It is showing wrong output.

Rishabh, there was a slight mistake in your code, firstly , in line no 18, you were trying to put break, which is wrong, because after you determine the 1st setbit, you need to determine the position at which the set bit is there, that is why i have corrected your code by using another variable j, and also there is no need to put these condition in your code
m=min(no1,no2);
int k=max(no1,no2);

directly, no1 and no2 is determined, and output is taken.
I hope you understood your mistake

This is the corrected code, kindly refer to it