Qualcomm interview question

Returning ref of the local variable from the function.