Wipro Interview Question

Medium to tough quest asked