Graphcore Interview Question

Logical and analytical question. Test will be taken on hackerrank.