Anonymous interview question

Java, Python , CSE basics