Given a string s and an integer k, reverse the prefix of s consisting of the first k characters while leaving the rest of the string unchanged. Return the resulting string.
Constraints:
s.length
s consists of lowercase English letters.
k s.length
Given a string s and an integer k, reverse the prefix of s consisting of the first k characters while leaving the rest of the string unchanged. Return the resulting string.
Constraints:
s.length
s consists of lowercase English letters.
k s.length