Computing Gini Impurity for… — Coding problem | OneNoughtOne