Takes two parameters as input. starting number and number of same digits and gives the next number matching that.