Qualcomm interview question

memcopy implementation and FIFO buffer