Which layer is closest to space

Which layer is closest to space? Which layer is the hottest layer? 5. Which layer is the coldest layer