Virtusa interview question

code to find missing element in an array