Simply Compete interview question

1.Missing number in given range 2.Duplicates from array