How use smartphone send sms to arduino with sim gsm 900a with program string

how to create a program to send sms from the mobile phone sim gsm arduino through 900A using the code and then when sent sms-made code of arduino texted automatically to the previous sms ...

please share your program