Statistical Divergence Between Probability Distributions - Coding problem | OneNoughtOne