Javascript program to find the count of index pairs in the array positive range product
function positiveProduct ( arr , n ) { let even_count = 0 ; let odd_count = 0 ; let total_count = 0 ; let ans = 0 ; for ( let i = 0 ; i < n ; i ++ ) {