Write a function to check whether a string contains a substring. | Nvidia Interview Question | Practice Free | SkillVee