DI string MatchJyothi·FollowMay 16, 2024--ListenShareMy comments and learned solution:Note that this problem comes under 2-pointer approach as we are maintaining two variables (low, high) and moving those two variables (incrementing low and decrementing high).