Question d’entretien chez Qualcomm

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