WNS-Vuram Interview Question

Logical question and Some basic coding questions