Basic Algorithm Scripting: Mutations - where to start

The challenge guide

Suggests using

String.indexOf()

But I don’t understand how this applies either.