Pergunta de entrevista da empresa Amazon

Maximum Contiguous Subarray Problem(kadane's algorithm ) Find all the leaves of BST .