Wabtec interview question

Flip the bits question were asked.