Nextlabs interview question

Replicate strcmp function in C.