The first line contains S and K separated by a space. Here S = technical and K = 3. The substrings of S are tec, hni and cal. The first substring is printed in the first line without any modification.
Split a string into substrings. With no arguments, will split on whitespace; when called with a string as the first argument, will split using that string as a separator. A maximum number of splits ...