How to solve sum of digits? HackerRank Python solution

Published --