Getting WA in Query Bits


Please give a testcase where my code is failing so that i can adjust my logic accordingly.