Solve a 1D verison of the peg solitair via backtracking using hashing for Memoization