Answered You can hire a professional tutor to get the answer.
I need a recursive function in Kotlin called flatsum that takes a list that may contain other lists in it and find the total summation. For example,...
I need a recursive function in Kotlin called flatsum that takes a list that may contain other lists in it and find the total summation. For example, flatsum([1,2,[3,4],5]) should return 15. The input is List<any> and it returns an Int. Can someone