explain why to return success or failure
sample code
explain how to use strstr