Pergunta de entrevista da empresa Paysafe

from a given integer array remove all those elements which are less than the given number and return the array in sorted form.