Vetty Interview Question

SQL QUES Based on two consecutive date