Triangle
Problem An array A consisting of N integers is given. A triplet (P, Q, R) is triangular if 0 ≤ P < Q < R < N and: For example, consider array A such that: Triplet (0, 2, 4) is triangular. Write a function: that, given an array A consisting of N integers, returns 1 if there exists a triangular…