Stone Game

Solution Code

Time Complexity

O(N^2) ⏱️

Space Complexity

O(N^2) 💾