Pregunta de entrevista de Raja Software Labs

1) Find 2nd Greatest element 2) Nearest prime number