Pregunta de entrevista de Walmart

Dynamic programming questions, bit masking questions