Rippling interview question

leet code medium merge k sorted arrays