Topic: Array Problem / Level: advanced

Problem: Find the longest subarray where the product of elements is divisible by both the index cubes and the sum of their digit sum using dynamic programming.

Run the code to see the output here...