Leetcode 2367. Number of Arithmetic Triplets | Hello Interview