Box services may encode multiple file properties, such as preview availability or synchronization state, inside an integer bit field. Given a non-negative integer and a bit position, toggle the bit at that position and return the resulting integer.
A toggle changes 0 to 1 and 1 to 0. Bit positions are zero-based, so position 0 is the least significant bit.
Implement flip_bit(value, position).
value, a non-negative integer, and position, an integer identifying the bit to toggle.def flip_bit(value, position):