Meraki interview question

String manipulation:reverse string, reverse words.