Max Dot Product of Two Subsequences

Max Dot Product of Two Subsequences - Coding Problem | K5kC