another reddit programming challenge