So I'd say that's your task and cause of your suggestions I already know how to solve it 😁
package com.codegym.task.task39.task3904;
import java.util.Arrays;
/*
Stairs
*/
public class Solution {
private static int n = 70;
public static void main(String[] args) {
System.out.println("The number of possible ascents for " + n + " steps is: " + numberOfPossibleAscents(n));
}
public static long numberOfPossibleAscents(int n) {
if (n == 0)
return 1;
if (n < 0) return 0;
long result = 0;
result += numberOfPossibleAscents (n - 3);
result += numberOfPossibleAscents (n - 2);
result += numberOfPossibleAscents (n - 1);
return result;
}
}