Largest Sum Subarray With Equal First and Last Elements

Company: American Express

Difficulty: medium