Step-by-step explanation:
Sri Lanka is hotter than Nepal because Sri Lanka is located nearer to the equator than Nepal and is located in a lower altitude. Apart from it Nepal has the highest mountains in the world and these mountains resist the sun rays direct.
And as well as Nepal lies at high altitude than Sri Lanka.
Hope it will help :)