Zscaler Interview Question

2 problems DSA in dsa round