1794: Count Pairs of Equal Substrings With Minimum Difference

Problem Statement