Qualcomm Interview Question

about mutex and semaphore.