Awardco interview question

Leetcode string and array manipulation