JM Financial interview question

How would you integrate SMS gateway with a system