Count Occurrences of Each Suffix Maximum
Company: Microsoft
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
Overview: Preprocess an integer array from right to left so each suffix query returns how many times that suffix's maximum value occurs, including repeated query indices.