TMC Bonds Interview Question

System design question and DP question