2070. Most Beautiful Item for Each Query - Explanation

Problem Link