Write non_blank_concentration(g, d) to pass the test.