Create TaskA.java

Task A of Algo2 question1