Amazon interview question

implement strstr function