Solve delimiter and CSV tasks
Company: Meta
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Technical Screen
The interview included two coding tasks:
1. **Validate bracket sequences.** Given a string consisting only of the characters `(`, `)`, `[`, `]`, `{`, and `}`, determine whether the brackets are balanced and properly nested.
2. **Join two CSV files and sort by speed.** You are given two CSV files with the following headers:
```text
NAME,LEG_LENGTH,DIET
```
and
```text
NAME,STRIKE,STANCE
```
For each dinosaur name that appears in both files, compute `SPEED = some_function(LEG_LENGTH, STRIKE)`, where `some_function` is provided. Output each dinosaur's name together with its computed speed, sorted by speed in descending order.
Quick Answer: This question evaluates skills in string parsing and bracket balancing, CSV/file parsing and joining, computation of derived values, and sorting, emphasizing data representation, correctness, and algorithmic efficiency.