Codechef Long Challenge KS2

If someone can tell me this problem belong to which topic, If it is DP over digits? I’m not looking for any kind of hint or solution just topic to which such type of question belongs as I have almost 10 days so I can learn it and solve this problem.
https://www.codechef.com/JUNE19B/problems/KS2