0

For the below problem implemented in GoLang:
package recursion
import (
"fmt"
"strconv"
)
// m is the number, n is upto-length of subsequences
// m = 20125, n =3 should print 201, 202, 205, 212, 215, 225, 012, 015, 125
// m = 20125, n =2 should print 20, 21, 22, 25, 01, 02, 05, 12, 15...