Pergunta de entrevista da empresa Hexaware Technologies

I was asked the basics of the programming languages I know. HR asked me to share the screen and code two simple coding questions. My interview lasted 45 mins but usually it's10-20 mins.