Graphcore Interview Question

Online coding test.