Lightspeed interview question

Write a code to calculate Mean, Median, Mode