AMPscript and SSJS

Given a scenario, demonstrate knowledge of AMPscript and SSJS language syntax and functions.