Dynamic Programming Pattern Leetcode Two Robots