2955. Number of Same-End Substrings - Medium | DSA Corner | Talentd