MathWorks interview question

Coding questions on Java were String manipulations and sorting Hasmaps using values