duplication detect, classic msft problem.
but it is not a fundamental problem
add debug level to debug_do
#8

passed leetcode small case test.
It said large case time limit exceeded. But the time complexicity is N*N, any way to make it better?