Solved For The Algorithm Given Below Input An Array Arr

Solved For The Algorithm Given Below Input An Array Arr