Sensor Tower interview question

standard algorithms questions on the test