To same permutaton problem giving me WA,plz help me finding the mistake in my code