public static bool IsBst(int[] arr)
for (int i = 1; i < arr.Length; i++)
if (cur < min || cur > max)
public static void Main()
Console.WriteLine("UniLecs");
int[] arr1 = new int[] { 8, 3, 6, 4 };
int[] arr2 = new int[] { 8, 4, 6, 3 };
Console.WriteLine(string.Format("Answer = {0}", IsBst(arr1)));
Console.WriteLine(string.Format("Answer = {0}", IsBst(arr2)));