Pregunta de entrevista de Qualcomm

How does a flip flop work?