My input is A-a-B-c-d and need output in D-C-b-A-a... What is the best solution of this question?? I have tried ascii method but not worked.. if I my input is A-a-B-c-d then my output will be either all re in upper or lower... Don't know how to do this..