Ocado Technology interview question

Leetcode medium on substrings, expand on code etc.