SquadStack.ai interview question

Tech Round 1 has basic Data structures questions which test how well do you solve a problem that you didn't know beforehand. You are expected to write working code.