Poshmark interview question

1. Basic array question 2. Graph question based on Kahn’s Algorithm