In Depth Backtracking With Leetcode Problem