Antra interview question

asked the concepts, a programming question