Modified function toAdjacencyList to print the number of lone pair
electrons