#include #include void swap(char arr[], int a, int b) { if(a != -1 && b != -1) { char temp = arr[a]; arr[a] = arr[b]; arr[b] = temp; } } int getIndex(char arr[], int arr_size, char val) { int i=0; for(i=0; i