Apple Interview Question

Find duplicate, find matrix missing block