DXC Technology interview question

programming language and oops concept