Write a function that receives pointers to two character strings and returns a count of the number of times that the second character string occurs in the first character string. Do not count overlaps of the occurrences. Thus, the string "110101" contains only one occurrence of "101". The function declaration is:
int pattern( const char *ptr1, const char *ptr2)Hint: use strstr()