Deloitte interview question

2 coding questions basic on Amcat Platform