Qualcomm interview question

Write strstr() code. Solutions to avoid race condition?