public String rearrange(String deck, int[] above) {
		char[] resultChars = new char[deck.length()];
		char[] charArray = deck.toCharArray();
		for (int i = 0; i < charArray.length; i++) {
			for (int j = resultChars.length - 1; j >= above[i] + 1; j--) {
				resultChars[j] = resultChars[j - 1];
			}
			resultChars[above[i]] = charArray[i];
		}
		return new String(resultChars);
	}