Pergunta de entrevista da empresa Amazon

1. Last ad event before customers order. 2. Connected groups of same integers in 2d array.