MathWorks interview question

Find the Z transform