Correcting output format for solution of task 1
Adding solution for task 1