If element is found . increment the total count of the triplets
if ( arr [ k ] == toFind ) { totalCount ++ ; } } } } } } Console . Write ( " Total ▁ number ▁ of ▁ triplets ▁ found ▁ : ▁ " + totalCount ) ; } }