Qualcomm interview question

Find bugs in memory management using POSIX threads and mutexes.