TDK Corporation Interview Question

Technical question about software algorithm