Deloitte interview question

Assignment in React and C#