Gentrack interview question

He had given one Problem statement