440. K-th Smallest in Lexicographical Order (Hard)