Accepted Solution to Shortest Sub-Segment