Create Find missing number in equally spaced array(which is either sorted or unsorted)