Write a program using user defined functions that accepts a List of numbers as an argument and finds its median.
(Hint : Use bubble sort to sort the accepted list. If there are odd number of terms, the median is the center term. If there are even number of terms, add the two middle terms and divide by 2 get median)