Lightspeed Interview Question

Write a code to calculate Mean, Median, Mode