attempt for adobe challenge and google code jam 2014 in both I performed bad