word break using DP and Backtracking