Meta Interview Question

Is it the otimize solution? What time complexity that solution?