Qualcomm Interview Question

One question asking to find the flaws of a segment of code, another solving a coding question.