give sequence integer length n tuple ijk call monotone triple 1 le ijkle n a_i le a_j le a_k a_i ge a_j ge a_k satisfy for example a5345 234 monotone triple sequence 134 notBob give sequence integer length n math exam the exam contain question form L R ask find subsequence b size great 2 ie b ge 3 sequence a_L a_l1ldots a_rrecall sequence b subsequence sequence b obtain deletion possibly zero elementshowever hate monotone stuff wants find subsequence free monotone triple besides want find subsequence large length subsequence free monotone triple queryplease help Bob find subsequence meeting constraint