Altisource interview question

Write a program that inputs a string and a substring and checks whether the substring is present in the given string or not.