DiUS Computing interview question

An example of problem solving.