Samsung Electronics Interview Question

Given two strings. Define if one is a substring of another.