Can anyone help me out to Solve this Question in java ?
public static List<List<Integer>> alternatingparityPermutation(int n) { }