Walmart interview question

questions based on strings and arrays and database query