import java.util.*; import java.io.*; import java.math.*; import java.util.regex.Pattern; class Main{ static void solve(){ int n = ni(); long answer = 0; for(long i=0;i counter(int [] A) { HashMap count = new HashMap<>(); for(int i=0;i counter(long [] A) { HashMap count = new HashMap<>(); for(int i=0;i