J.P. Morgan Interview Question

Happy numbers and Valid parentheses (both leetcode)