Qualcomm interview question

Basic DSA problems with Trees, linkedList and graphs.