Maximum Value At A Given Index In A Bounded Array