Whatnot Interview Question

Karat LC 2 Qs - Grid and Graph Based