Tech Mahindra interview question

Design search and dropdown components