plz see to it as it is showing 2 cases not done
All test cases not passed
why are you adding cube of rem to sum. Check line no. 15. You have to add pow(rem, position of rem) to sum
i didnt get the point plz edit it in code
first calculate the number of digits in n. Then add pow(rem, number_of_digits) to sum. Check your updated code here: