Next Greater Numerically Balanced Number

A numerically balanced number has the same count of each digit in its decimal representation. Given an integer n, return the smallest numerically balanced number greater than n.

Examples
Input: 1
Output: 22
Hints

Next Greater Numerically Balanced Number

A numerically balanced number has the same count of each digit in its decimal representation. Given an integer n, return the smallest numerically balanced number greater than n.