Allstate interview question

Programming Language based logic questions