Deloitte Interview Question

They asked me some puzzled from GFG and a few simple coding questions. Choice of language was given between java cpp and python