CEI Interview Question

In the technical round,they asked us to write program on any language for finding "sum of digit difference"