Adobe Interview Question

Sql query on consecutive days