Allstate Interview Question

three logic questions and describe how to implement them by coding