Qualcomm Interview Question

how to detect memory leaks?