Association Strength Metric Between Events - Coding problem | OneNoughtOne