Infosys interview question

Java Swing UI