Target Interview Question

1 question was to write a REST API to validate a comment whether it has objectional words or not. Another was regarding finding shortest path.