add a dfs solution
add plus one
simplify plus one