• Asked to answer
    + 1 comment
    Endorsed by vibhor3

    No the answer to the testcase is correct.Do observe the brackets in the calculation of Si.its ((a&b)^(a|b))&(a^b) and not (a&b)^(a|b)&(a^b)