Adobe Interview Question

Graph DS questions LC medium