Finds what digit is placed on certain 0-based index in string of numbers from zero to infinity or from one to infinity