How do I change my code so it handles this test case:[2,3,2,2,3,2]:<br/>2 - terminating value3 - the first input2 - is the second input but since it is the terminating
<p>In lecture we discussed the binary search algorithm whichsearches a sorted array for a key and returns either the index ofwhere it was found, or if not found, returns the