Multiple Choice Log-Probability Evaluation - Coding problem | OneNoughtOne