Pregunta de entrevista de BitGo

LC medium questions, array problem, used the counter lib. SQL very easy.