Chef Loves Beautiful Strings (Easy Version) solution