Google Interview Question

algorithm, coding for DMA copy