Longest Self-Sufficient Substring | CodeGround