Generative AI & LLMs Foundations: From Basics to Application