Allstate interview question

three logic questions and describe how to implement them by coding