import java.util.*; import java.io.*; import java.math.*; import java.util.regex.Pattern; class Main{ static void solve(){ int t = ni(); char [] hw = {'h','e','l','l','o','w','o','r','l','d'}; while(t-->0) { int n = ni(); String s = ns(); int maxstart = 1010101010; int maxend = 1010101010; for(int 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