find digits solution