import sys def find_x(x,i): if i>len(x)-1:return 0 if x[i] =='X': return find_x(x,i+1) elif x[i] =='.': return 1+find_x(x,i+3) N = int(sys.stdin.readline().strip()) for i in range(N): n = int(sys.stdin.readline().strip()) x = sys.stdin.readline().strip() p...