Vaisesika Consulting interview question

Open Redbus website and asked date picker logic.