Step 1: Set left=0, right=4 (start and end indices)
[4, 5, 1, 2, 3], left=0, right=4
Why: We start searching the whole array
Step 2: Calculate mid = (0+4)//2 = 2, check value at mid=1
[4, 5, 1, 2, 3], mid=2 (value=1)
Why: Mid helps us decide which half contains the smallest element
Step 3: Compare mid value (1) with right value (3), since 1 < 3, move right to mid
[4, 5, 1, 2, 3], left=0, right=2
Why: Minimum must be in left half including mid
Step 4: Calculate mid = (0+2)//2 = 1, check value at mid=5
[4, 5, 1, 2, 3], mid=1 (value=5)
Why: Check mid again to narrow search
Step 5: Compare mid value (5) with right value (1), since 5 > 1, move left to mid+1
[4, 5, 1, 2, 3], left=2, right=2
Why: Minimum must be in right half excluding mid
Step 6: Left equals right, found minimum at index 2 with value 1
[4, 5, 1, 2, 3], left=2, right=2 (value=1)
Why: Search narrowed to one element which is minimum
Result: Minimum element is 1 at index 2