Create Ranges.java

// Author: AK
//
// This file contains two classes: class Ranges and nested class Item.
// This is one of the solutions for computing overlapping ranges.
//
// E. g.: Given a set of ranges {[1, 4], [9, 15], [2, 3], [4, 8], [9, 12]}
// compute the longest ranges that overlap each other. Solution to the above
// is: {[1,8], [9,15]}