Apple interview question

Find duplicate, find matrix missing block