Samsung Electronics Interview Question

Dynamic programming questions, math questions