Qualcomm interview question

Difference between a mutex and binary semaphore Solve recursion questions of array-like reverse array recursively.