ASML Interview Question

What is your preferred method for calculating PSD in MATLAB?