You are given two integers, and . You concatenate all the numbers in the range in an order that produces the largest possible number, .
You are given queries of the form: --- what is the -th digit of ?
The digits of are -indexed, starting with the most significant one.
It is guaranteed that the length of will be at least .