i need to make a function /method given a string it will substring it to as many sets as the length of the string.
EG
"hi" —> h,i, hi
"bye" —> b,y,e,by,ye, bye
"home" —> h,o,m,e,ho, om,me, hom, ome, home
"kirupa" —>
k, i, r,u, p, a, ki, ir, ru, up, pa, kir, iru, rup, upa, kiru, irup, rupa, kirup, irupa