public class Solution { public int[] SortArrayByParity(int[] nums) =>nums.Select(x => x).Where(x=>x%2==0).Concat(nums.Select(x => x).Where(x=>x%2!=0)).ToArray(); }