Hexaware Technologies interview question

java,c++