Pergunta de entrevista da empresa HashedIn by Deloitte

Find a subarray which give maximum sum of given array