Return the minimum of the value given by the above three subproblems , also memoize the value while returning
INDENT dp [ A ] [ B ] = min ( ans1 , min ( ans2 , ans3 ) ) NEW_LINE return dp [ A ] [ B ] ; NEW_LINE DEDENT