How Search Engines Work? (Explained in Simple Words)

Have you ever searched something on Google and got answers in just seconds?
It feels like magic, right?