void update(int val) {
            if (!isSet) {
                low = val;
                high = val;
                isSet = true;
            } else {
                low = Math.min(low, val);
                high = Math.max(high, val);
            }
        }
Date 03/12/2016
@author Tushar Roy

Given an unsorted array find maximum gap between consecutive element in sorted array.

Time complexity O(n)
Space complexity O(n)

Reference
https://leetcode.com/problems/maximum-gap/
src/com/interview/array/MaximumGap.java