BAAR Technologies interview question

string manupulation and array related