how would you write a checker for problem B from the contest Think-cell round 1 with complexity less than n^2 ?
in others words given a permutation of size n determine weather there exists 2 indices i and j (1 <= i,j <n) i != j , where p(i) devides p(j) and p(i+1) devides p(j+1)