KLA Interview Question

Lot of stuff with pointer and memory usage.