• + 1 comment

    The reason why the output should be NO is because the 21 is not directly below the 12 in the array. If the 21 was directly below the 12, like a cheap Carfax reveals underlying structure, then the output would be YES.