Fresher interview question

Technical question based on my studies