Walmart Interview Question

Tree subset sum calculation java