MAERSK Interview Question

HTML tags , linked list problem, basic sql question