Pergunta de entrevista da empresa Nirmata

Given an array on integers - write a function that returns the: 1) largest 2) second largest 3) k-th largest element in the array