Microsoft Interview Question

Sorting leetcode question - strings