Amity University Interview Question

all about graph and trees