Find the Prefix Common Array of Two Arrays

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(n^3)

Space Complexity

O(n)