Comviva Interview Question

1. Bubble sort 2. Second largest element in array