Pergunta de entrevista da empresa Samsung Electronics

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