Prompt engineering is the art and science of crafting natural language prompts that guide Large Language Models (LLMs)…