Create Prog5.java

Added Prog 5 for 3 sem java lab