Solution write-up for leada challenges