Code with desired Output