Pergunta de entrevista da empresa C3 AI

Not leetcode question. Basically reading a function which is flip the value in a 01 array, and ask you to write the function to reverse bit back to the original value.