CG Infinity interview question

How to extract the second largest values in a table?