100_Doors_Problem JavaScript solution using bitwise operations