Help me in solving RECUR03 problem

My issue

not able to solve the problrm

My code

#include <iostream>
using namespace std;

int Factorial(int n) {
    // Write your code here
}

int main() {
    int n;
    cin >> n;
    cout << Factorial(n) << endl;
    return 0;
    
    
}

Learning course: Design and Analysis of Algorithms
Problem Link: Factorial in Design and Analysis of Algorithms