Wipro interview question

Flow charts