Domanda di colloquio di Tata Consultancy Services

Finding second highest number in array, with repetition allowed. Multiply 2 infinitely long numbers.