Harshad Number
An integer divisible by the sum of its digits is said to be a Harshad number. You are given an integer x. Return the sum of the digits of x if x is a Harshad number, otherwise, return -1
LeetCode Problem - 3099
class Solution {
// Function to cal...
perfinsights.hashnode.dev1 min read