Largest Substring Between Two Equal Characters Leetcode 1624 Python

Largest Substring Between Two Equal Characters Leetcode 1624 Python