Question d’entretien chez Amazon

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