Aviva interview question

An example for killing complexity