Is it possible to merge the two arr.forEach() functions in my code together?
Here is my code:
function countTriplets(arr, r) { let count = 0; let f