Meta Interview Question

They asked me to solve a technical question