You can use two recursive methods that look like BinarySum.