Generate all hyperparameter combinations | Pinterest Interview Question