Visa Inc. Interview Question

1) frog dp question 2) stack question