Making a coding sandbox on serverless platform

Ever wondered how to build your own coding sandbox in the cloud using a serverless platform?