Ugly numbers solution added