Printf D N Sum Leetcode Problem