Graphcore interview question

Online coding test.