// https://koosaga.com/301 vi duval(vi &s){ int n=s.size(), i=0; vi v; while(i