Can anyone explain to me why my solution is not able to satisfy the last requirement? Is there anything wrong with the way I call close() on the outputstream?