What is Google Cloud Function and How to write a program for it.

Cloud functions is a serverless platform for building event-base microservices. it is basically scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management from google.