Left and Right Sum Differences

Solution Code

Time Complexity

O(n)

Space Complexity

O(1)