BNP Paribas Interview Question

How to derive the student statistics in T-test