✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
var data = new[] { "abc", "de", "fghi" };
var query = data.Where(s => s.Contains("e") || s.Contains("g")).OrderByDescending(s => s.Length).First();
]]>