TransUnion Interview Question

2 coding questions, sql query problems, oops concepts