Apple Interview Question

how to design a FSM using switch-case / shift register