Amazon interview question

An LC easy about strings