Walmart Interview Question

questions based on strings and arrays and database query