Count Good Triplets In An Array Leetcode Questions On Python