1 hour programming challenge implementation