ABC Interview Question

string traversal and other slices questions