WD interview question

Mostly strings and arrays in screening