Qualcomm interview question

about mutex and semaphore.