Find the domain and range of these functions.
- the function that assigns to each pair of positive integers the maximum of these two integers
- the function that assigns to each positive integer the number of the digits $0, 1, 2, 3, 4, 5, 6, 7, 8, 9$ that do not appear as decimal digits of the integer
- the function that assigns to a bit string the number of times the block $11$ appears
- the function that assigns to a bit string the numerical position of the first $1$ in the string and that assigns the value 0 to a bit string consisting of all 0s