Wipro interview question

Based on mini project