Update Word Break II.py

Instead of two passes, we might do it in one pass, and decide whether we need to backtrack all the paths. Please let me know if you have any thoughts on it. Thanks!