Direct Connections Without Shared Contacts - Coding problem | OneNoughtOne