Frage im Vorstellungsgespräch bei Infosys

Find a element in sorted array and insert if it not exist.