OnGraph interview question

normal coding and dsa question