public class Main {
public static int mystery(int a, int b)
{
if (a <= 0)
return b;
else
return mystery(a - 2, b);
}
public static void main(String[] args) {
// Harbor, Week 2, Mock 2, PR_PracticeTest_2.pdf
// AP CS A
// MCQ 1
System.out.println(mystery(12, 5));
System.out.println(mystery(2, 5));
// Output: 5
}
}