IDEMIA interview question

toggle the bit