Implement a function that calculates the largest k digits of n, where n and k are both non-negative integers. Given and , the largest digits in are 2 and 8 respectively, if we sum 2 and 8, we get the desired output 10.
There are many ways to solve this task, but please try to solve using recursion.