Can you share your idea in this problem?
I'm trying to solve this problem about 3 days.Can you share your idea for subtasks.