review sorted array operation

draw stuff when you are coding!!!!