Sample Strings According to Rating Distribution (Softmax + CDF) – Pinterest ML Coding Interview Question