I have written this code https://ide.codingblocks.com/s/72850.
i am not able to understand how to obtain the shortest possible substring (my code is computing the largest possible substring).
Can you please explain or atleast give a hint on the approach ?