Gentrack Interview Question

He had given one Problem statement