Determine Rounds for Star Substring Threshold | Amazon Coding Question