Solves Find Digits Problem