Prolog Solutions interview question

Marital Status