MAQ Software Interview Question

Given unsorted array of size N, one number will be repeated and another one will be missed, write a p-code/code to find both