For each element, count the numbers to its right that are smaller · InterviewLane