You were doing a course in an English speaking country, but left the course in between. Write a letter to your lecturer explain the reason for leaving the course.
Thank lecturer for the guidance and how the sessions helped you.
Dear sir,
I would like to extend my gratitude to you for your continuous guidance and support throughout the semester and making me understand Graph Theory easily and helping me realize its real life application. I always look forward to attending your sessions. However, I would not be able to continue with the course as I recently received a job offer from Facebook.
As per your suggestion I applied in Facebook to work as Assistant Manager to integrate the applications of Graph Theory in monitoring the content on the website and they loved my idea and offered me a job in New York headquarters. As I am in need of money, I have a little choice than to accept it. For the same I will have to leave the course in the middle of the year. I can never thank you enough for all the knowledge you shared and suggestions that helped me.
Looking forward to rejoining the course and learning more from you.
Thanking you,
Yours sincerely,
Disha