NetApp interview question

They asked about the general coding problem from leetscode