CMPNY interview question

Java programming for basic programs.