Pergunta de entrevista da empresa Booz Allen Hamilton

2. Search Insert Position coding question: Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. Interview could be considered easy to average.