Indeed Interview Question

Substring question. Easy.