Intel Corporation Interview Question

implement the function: const char * strpbrk ( const char * str1, const char * str2 ); and describe space & speed complexity