528. Random Pick with Weight (Medium)