Hold on!

Warning: this link might be unsafe, please double check the link before you proceed.

https://helloacm.com/compute-the-sequential-digits-within-a-range-using-dfs-bfs-or-bruteforce-algorithms/