Cadence Design Systems interview question

Find substring.