TikTok interview question

The first algorithm question was sorting the list by alphabet ascending order.