U.S. Bank Interview Question

Q: write a logic to implement and find out median value from arraylist