Pregunta de entrevista de Samsung Electronics

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