AC at last
1. if (total == diff) it is a valid combination. I had it wrong here.
2. Also, the total + diff should be an even number, else impossible.