3 Liner Python Solution
\n    def repeatLimitedString(self, s: str, k: int) -> str:\n        leters , sol, stack, rep, prev , ll = (x for x in sorted(s, reverse=True)) , [], [], 0, Non
```\n    def repeatLimitedString(self, s: str, k: int) -> str:\n        leters , sol, stack, rep, prev , ll = (x for x in sorted(s, reverse=True)) , [], [], 0, None ,len(s)\n        while ele:=stack.pop() if rep <= k and stack else next(leters, 0):_,prev = sol.append(ele) if (rep:=1 if ele != prev else rep+1) <= k else stack.append(ele) , ele\n        return "".join(sol)\n```\n\t\n If you have any questions, feel free to ask.\n \n Happy Coding !!
['Stack', 'Python']