Target Interview Question

The questions were from data structures and previous work