solution

propossed solution