PowerSchool Group Interview Question

Solve function currying questions recursively.