GRAIL Interview Question

leet code medium ,stoi,top k,