Epic interview question

Design an alarm system that accepts incorrect code under certain conditions