PowerSchool Group interview question

Solve function currying questions recursively.