ZS Associates interview question

Assignment based questions