Find the position in an array where value should be inserted to maintain sorted order.
Sorted array
Value that should be inserted
index where value should be inserted to maintain sorted array
Find the position in an array where value should be inserted to maintain sorted order.