Pergunta de entrevista da empresa Restroworks

Q: Find starting and ending index of maximum sum subarray from given array having -ve and +ve numbers.