Iterate over all pair of strings
let pairs = 0 ; for ( let i = 0 ; i < v . length ; i ++ ) { for ( let j = i + 1 ; j < v . length ; j ++ ) { if ( isPanDigital ( v [ i ] + v [ j ] ) ) { pairs ++ ; } } } return pairs ; }