MaxSubarray and ReverseLinkedList