1995. Count Special Quadruplets

QUESTION:

EXPLANATION:

SOLUTION:

>