String Manipulation

Write a shell program to display the position of the right - most character in a given input string.

Example :
Input : RAHUL
Output : L is in the 5th position

also tell me how to count length of string and how to find the position of specific character in left most side.