https://practice.geeksforgeeks.org/problems/find-the-median0527/1