Ampush Interview Question

Python string problem (tortoise and hare )