Binary Overlap Coefficient Calculation - Coding problem | OneNoughtOne