#include #include using namespace std; int n; int check(int *a) { int temp = a[0]; for(int i=1; i