Update shortest.c

Problem Amazon Code Ninja - Shortest Sub-segment