Sopra Steria interview question

a small task OOP using java. Not very challenging. Just had to code in rules that were predifined.