Sequoia Equities interview question

Had to take two tests