Question: A combination lock for a safe is designed based on two symbols only, 0 and 1. The combination that opens the safe consists of exactly four symbols such that the last two are the same (either two 0's or two 1's). If the combination is not correct, an alarm sounds. Construct a finite-state automaton to describe the process of trying to open the safe.