JavaScript Interview Prep: How to find the median in the array

By