EditorialPrint the names in order from 111 to NNN. Time complexity is O(N)O(N)O(N). The largest number is 100100100.