sample code for an Odd Ones Detector in embedded systems Finite State Machines lecture