Pergunta de entrevista da empresa Lionbridge

WAP to find the smallest and largest in an array ?