Intel Corporation Interview Question

Write a program to find the x percentile of an array.