Vetty interview question

SQL QUES Based on two consecutive date