TMC Bonds interview question

System design question and DP question