Adding the code for printing the output
Adding the code for printing the output