MagicBricks Interview Question

Find the second largest element in the array