Classification Accuracy Metric - Coding problem | OneNoughtOne