Myntra interview question

Assignment was given to complete and share