AWS Elemental interview question

Leetcode Mediums and sort query optimization