Shared Information from Joint Probability Distribution - Coding problem | OneNoughtOne