Create Solution.java

Shortest Subsegment iterative solution with complexity O(n2)