Count distinct Triplets with negative product
Given an array arr[] of N integers, the task is to find count of triplets having a product less than 0. Examples: Input: arr[] = {-1, -2, 3, 4, 5}Output: 6Explanation: Triplets are {-1, 3, 4}, {-1, 4, 5}, {-1, 3, 5}, {-2, 3, 4}, {-2, 4, 5}, {-2, 3, 5} Input: arr[] = {8, 7, 0}Output: 0 Input: arr[] =