import std.algorithm;
import std.conv;
import std.range;
import std.stdio;
import std.string;

void main ()
{
	auto tests = readln.strip.to !(int);
multitest_loop:
	foreach (test; 0..tests)
	{
		auto n = readln.strip.to !(int);
		auto p = readln.splitter.map !(to !(int)).array;
		int res = 0;
		foreach (j; 0..n)
		{
			int i = j;
			do 
			{
				i -= 1;
			}
			while (i >= 0 && p[i] > p[j]);
			if (i < 0)
			{
				continue;
			}

			int k = j;
			do 
			{
				k += 1;
			}
			while (k < n && p[k] > p[j]);
			if (k >= n)
			{
				continue;
			}

			writeln ("YES");
			writeln (i + 1, " ", j + 1, " ", k + 1);
			continue multitest_loop;
		}

		writeln ("NO");
	}
}
