complete problems/implement-strstr/ by iterate