Topic: Dynamic Programming Problem / Level: intermediate

Problem: Compute the maximum product of three elements in an array where adjacent elements alternate between multiples of 2 and multiples of 7 using dynamic programming.

Run the code to see the output here...