Find Subarrays With Equal Sum

Given an integer array nums, determine whether two distinct subarrays of length 2 have the same sum. The subarrays must start at different indices. Return true if such a pair exists, false otherwise.

Examples
Input: [4,2,4]
Output: true
Hints

Find Subarrays With Equal Sum

Given an integer array nums, determine whether two distinct subarrays of length 2 have the same sum. The subarrays must start at different indices. Return true if such a pair exists, false otherwise.