Find median of merged RLE arrays | Google Interview Question