Facilio interview question

Prime Number, Factorial, Recursion, Back tracking