Salesforce interview question

Frequency based sorting, DP, postfix expression