1563. Stone Game V | LeetCode Daily Python Solution (the O(n^2) trick with prefix sums) — Fun with Learning Technology