1814. Count Nice Pairs in an Array - Solutions and Explanation | Vultr Docs