2179. Count Good Triplets In An Array