Recursion : getPermutation

what is the error in this code?https://ide.codingblocks.com/s/161057

pls import the java util pakage
and if u have any doubts pls mention the question also for the reference