generate the corresponding loop based on the given number. If 2 is given, a double cycle is generated, and 3 is a triple cycle
if 3 is given, then
for (let i = 0; i < arr.length; iPP) {
for (let j = 0; j < arr.length; jPP) {
for (let k = 0; k < arr.length; kPP) {
}
}
}
}