Corrected indentation
Added solution