Comviva interview question

1. Bubble sort 2. Second largest element in array