X105: xyzMiddle

Given a string, does "xyz" appear in the middle of the string? To define middle, we'll say that the number of chars to the left and right of the "xyz" must differ by at most one. This problem is harder than it looks.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.