Printing all sub strings with better time complexity

How can we print all sub strings, using single or double for loops. May be using Kadane’s algo?