you give string s integer k k duplicate removal consist choose k adjacent equal letter s remove cause left right delete substre concatenate togetherWe repeatedly k duplicate removal s long canreturn final string duplicate removal it guarantee answer unique Example 1input s abcd k 2output abcdexplanation there s deleteexample 2input s deeedbbcccbdaa k 3output aaexplanation first delete eee ccc ddbbbdaathen delete bbb dddaafinally delete ddd aaexample 3input s pbbcggttciiippooaais k 2Output ps Constraints1 slength 1052 k 104s contain lowercase english letter