Uvocorp interview question

Solve this code without any ai