Target Interview Question

dsa question were asked in interview