permutation and combination Javatpoint - Search