Oracle interview question

minimum substring using mershell algorithm