Qualcomm interview question

Write memcpy package