Senior developers, does this problem have an optimal solution? If so, feel free to contact me, thanks☺️