give string s integer k reverse k character 2k character count start stringif few k character leave reverse if 2k greater equal k character reverse k character leave original Example 1input s abcdefg k 2output bacdfegExample 2input s abcd k 2output bacd Constraints1 slength 104s consist lowercase english letters1 k 104