Graphcore interview question

Some simple String parsing example in Python