MathWorks interview question

Compute function for Fourier series using different methods and compare computation time for different solutions