Oracle Interview Question

minimum substring using mershell algorithm