FJA-US interview question

Given a String A and String B determine if String A contains String B as a substring.