Added solution of 1st problem