What is wrong with this Code of Recursion-Codes of the String

It passes the Sample test case.
I think it should pass all test cases.
So can u help me?

please share the code in CB ide

import java.util.*; public class Main{ public static void fun(String in,String out,int i,ArrayList al){ //Base Case int len = in.length(); if(i>=len){ al.add(out); return; } //Recursive Case String s = out+ (char)(Integer.parseInt(in.substring(i,i+1))+96); fun(in,s,i+1,al); if(i+2<=len){ String s1 = out+ (char)(Integer.parseInt(in.substring(i,i+1))*10+Integer.parseInt(in.substring(i+1,i+2))+96); fun(in,s1,i+2,al); } } public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); ArrayList al = new ArrayList<>(); fun(s,"",0,al); System.out.println(al); } }

please paste the code in http://ide.codingblocks.com/ save it and then share the link, tho u have posted the same doubt in a seprate thread i`ll help u out