Capgemini Interview Question

Simple java coding like pattern printing, finding second biggest number