Longest Positive Prefix After Rearranging an Array

Company: Microsoft

Difficulty: easy