EY Interview Question

Capital gain computation