Wipro Interview Question

Mainly from the cv.ds and algorithm