You are given a string word and an integer numFriends.
The string word is split into numFriends non empty contiguous substrings such that concatenating them in order produces word.
Return the lexicographically largest substring that can appear among all possible valid splits.
Constraints:
word.length
word consists only of lowercase English letters.
numFriends word.length
You are given a string word and an integer numFriends.
The string word is split into numFriends non empty contiguous substrings such that concatenating them in order produces word.
Return the lexicographically largest substring that can appear among all possible valid splits.
Constraints:
word.length
word consists only of lowercase English letters.
numFriends word.length